package com.sqx.modules.navigation.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.common.utils.PageUtils;
import com.sqx.modules.navigation.dao.JgDhDao;
import com.sqx.modules.navigation.entity.JgDh;
import com.sqx.modules.navigation.service.JgDhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("jgDhService")
public class JgDhServiceImpl  extends ServiceImpl<JgDhDao, JgDh> implements JgDhService {
    @Autowired
    private JgDhDao  jgDhDao;
    @Override
    public PageUtils queryPage(Integer page, Integer limit, Integer userType, Integer status, Integer type) {
        IPage<JgDh> pages=new Page<>(page,limit);
        return new PageUtils(jgDhDao.selectPage(pages,userType,status, type));
    }

    @Override
    public Object queryAppPage(Integer page, Integer limit, Integer userType, Integer type) {
        IPage<JgDh> pages=new Page<>(page,limit);
        return new PageUtils(jgDhDao.selectAppPage(pages,userType,type));
    }
}
